import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'logisticsStatus',
})
export class LogisticsStatusPipe implements PipeTransform {

  transform(value: unknown, ...args: unknown[]): unknown {
    if (1 === value) return '等待出库';
    if (2 === value) return '运输中';
    if (0 === value) return '已收货';
    return '';
  }

}
